package com.simpou.commons.web.helper;

import java.util.Date;
import javax.xml.bind.annotation.adapters.XmlAdapter;

public class DateConversor
        extends XmlAdapter<String, Date> {

    public static final String MARSHALLED = "date";

    public static final Date UNMARSHALLED = new Date();

    @Override
    public Date unmarshal(String v) throws Exception {
        return UNMARSHALLED;
    }

    @Override
    public String marshal(Date v) throws Exception {
        return MARSHALLED;
    }
}
